# reauired environment variables
# APP_HOME

APP_HOME=/EAI/eaiDomains/tuxdomain

SYSINCDIR=../include
SYSHEADDIR=/usr/include

# Tuxedo Environment
TUXLIBDIR=$(TUXDIR)/lib

# CC Environment
CC=cc
INCDIRS=-I. -I$(ORACLE_HOME)/precomp/public -I$(TUXDIR)/include -I$(SYSINCDIR) -I$(SYSHEADDIR)

LIBDIRS=-L$(ORALIBDIR) -L$(TUXLIBDIR)
CFLAGS= 

# PROC Environment

DESLIB=libeai.a
OBJS=HexLog.o trim.o convlang.o getcurtime.o dmp.o

all : $(OBJS) 
	ar -r -v $(DESLIB) $(OBJS)

install:
	cp *.a ${APP_HOME}/lib

clean :
	rm *.o *.a 

.SUFFIXES : .pc .c .o .sh

.pc.c:
	proc $(PROFLAGS) iname=$*.pc

.pc.o:
	proc $(PROFLAGS) iname=$*.pc
	$(CC) $(CFLAGS) -c $*.c

.c.o:
	$(CC) $(CFLAGS) -c $*.c  
